import React from 'react';
import {View} from 'react-native';
import {connect} from 'react-redux';
import action from '../../store/actions/historicalAlarm';
import PublicHead from '../publicComponents/PublicHead';
import HistoryListHeader from './HistoryListHeader';
import HistoryList from './HistoryList';

/**
 * 历史报警
 */
class HistoryAlarm extends React.Component {
  render() {
    return (
      <View>
        <PublicHead headerText={'历史报警'} />
        <HistoryList />
      </View>
    );
  }
}

const mapStateToProps = state => state.historicalAlarm;
export default connect(mapStateToProps, action)(HistoryAlarm);
